<?php

use Biz\service\Store\CustomCategoryService;

/**
 * Description: 分类信息
 * Created by IntelliJ IDEA.
 * User: 玉坤
 * Date: 2021/7/29
 * Time: 13:58
 */

class CategoryListAction extends ActionPlugin
{
    public const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $store_id = $this->getRequest()->getPost('store_id', 0);
        if(!$store_id){
            throw new Exception('非法传参');
        }
        $data['list'] = CustomCategoryService::bGetCategoryListForWeb((int)$store_id);
        $this->setSuccess($data);
    }
}